<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/css/style.css">
<title>八维贴吧后台管理系统</title>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery-3.2.1.js">
	
</script>
</head>
<body>
	<!-- 头部分 -->
	<jsp:include page="/WEB-INF/view/admin/header.jsp"></jsp:include>

	<div class="container-fluid">
		<div class="row">
			<!-- 左侧部分 -->
			<jsp:include page="/WEB-INF/view/admin/left.jsp"></jsp:include>




			<!-- ////自己开发的部分///////////// -->
			<div class="col9" style="height: 500px;">

				<form:form id="forum" action="${pageContext.request.contextPath}/admin/forum/save" method="post">
					  <input type="hidden" name="id" value="${forum.id }">
					<div class="card bg-white"
						style="width: 500px; margin-left: auto; margin-right: auto;">
						<div class="card-header">
							<b>开设版块</b>
						</div>
						<div class="card-body">
							<dl>
								<dt>版块名称：</dt>
								<dd>
									<input id="name" name="name" type="text" value="${forum.name }" size="30" >

								</dd>
								<dt>版块描述：</dt>
								<dd>
									<textarea id="description" name="description" rows="5" 
										cols="32">${forum.description}</textarea>

								</dd>
								<dt>版块排序：</dt>
								<dd>
									<input id="sorted" name="sorted" type="text" value="${forum.sorted }" size="3">
								</dd>
								<dt></dt>
								<dd>
									<button type="submit" class="btn btn-success">保存</button>
								</dd>
							</dl>
						</div>
					</div>

				</form:form>

			</div>

			<!-- ////自己开发的部分///////////// -->
		</div>
	</div>

	<script type="text/javascript">
		function searchData(pageNum) {
			$("#pageNum").val(pageNum);
			$("#pageFrm").submit();
		};

		function forumInsert() {
			window.location.href = "${pageContext.request.contextPath}/admin/forumInsert";
		};
	</script>
</body>
</html>